package com.okbihuo.perm.core.logger.domain;


import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 实体类
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LogRecord {

	private static final long serialVersionUID = 1L;

	/**
	 * 日志级别
	 */
	@ApiModelProperty(value = "日志级别")
	private String logLevel;
	/**
	 * 日志类型
	 */
	@ApiModelProperty(value = "日志类型")
	private String type;
	/**
	 * 日志业务标识
	 */
	@ApiModelProperty(value = "日志业务唯一标识")
	private String logUnique;
	/**
	 * 日志数据
	 */
	@ApiModelProperty(value = "数据")
	@JsonIgnore
	private String logData;
	/**
	 * 方法类
	 */
	@ApiModelProperty(value = "出错类")
	protected String methodClass;
	/**
	 * 方法名
	 */
	@ApiModelProperty(value = "出错方法")
	protected String methodName;
	@ApiModelProperty(value = "请求地址")
	private String requestUri;

	@ApiModelProperty(value = "远程ip")
	private String remoteIp;

	@ApiModelProperty(value = "客户端")
	private String userAgent;
	@ApiModelProperty(value = "请求方法")
	private String method;
	@ApiModelProperty(value = "请求参数")
	private String params;

	@ApiModelProperty(value = "post请求数据")
	private String bodyData;
}
